package com.ymttest.database.mapping;

import java.util.List;

import com.ymttest.database.model.YmtSellerPromotion;

public interface YmtSellerPromotionMapper {
	
	/*
	 * 根据促销ID获取满减促销信息
	 */
	List<YmtSellerPromotion> selectPromotionByPromotionId(Integer promotionId);
	
	/*
	 * 根据买手ID获取满减促销信息
	 */

	List<YmtSellerPromotion> selectPromotionBySellerID(Integer sellerID);
	
	int updateStateByPromotionId(Integer promotionId,String promotionBeginTime);

	
	int updateStateByPromotionId(Integer promotionId);

	List<YmtSellerPromotion> selectPromotionBySellerId(Integer sellerID);

    int updatePromotionBySellerId(YmtSellerPromotion record);
    
    List<YmtSellerPromotion> selectPromotionState(Integer sellerID);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_SellerPromotion
     *
     * @mbggenerated Wed Nov 02 16:50:52 CST 2016
     */
    int deleteByPrimaryKey(Integer promotionId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_SellerPromotion
     *
     * @mbggenerated Wed Nov 02 16:50:52 CST 2016
     */
    int insert(YmtSellerPromotion record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_SellerPromotion
     *
     * @mbggenerated Wed Nov 02 16:50:52 CST 2016
     */
    int insertSelective(YmtSellerPromotion record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_SellerPromotion
     *
     * @mbggenerated Wed Nov 02 16:50:52 CST 2016
     */
    YmtSellerPromotion selectByPrimaryKey(Integer promotionId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_SellerPromotion
     *
     * @mbggenerated Wed Nov 02 16:50:52 CST 2016
     */


    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_SellerPromotion
     *
     * @mbggenerated Wed Nov 02 16:50:52 CST 2016
     */
    int updateByPrimaryKey(YmtSellerPromotion record);
}